home *** CD-ROM | disk | FTP | other *** search
-
- BASIC only allows 3 files to be open at one time. However,
- if you want more than that open at once, when calling BASIC,
- one may use the /F:xx option where xx is a number between 1
- and 15. The new BASIC apparently has a problem with the
- /F:xx option. It doesn't recognize the command. For instance
- if you try the following command you should find that the
- program bombs when it hits the LPRINT statement:
-
-
- 10 OPEN "TEMP1.DAT" FOR OUTPUT AS #1
- 20 OPEN "TEMP2.DAT" FOR OUTPUT AS #2
- 30 OPEN "TEMP3.DAT" FOR OUTPUT AS #3
- 40 OPEN "TEMP4.DAT" FOR OUTPUT AS #4
- 50 OPEN "TEMP5.DAT" FOR OUTPUT AS #5
-
- You will have to, of course, use /F:5 when calling BASIC to
- try this. Now insert a line at 60 that looks like this:
-
- 60 LPRINT "TESTING FOR THE BASIC 2.00 BUG"
-
- Now run the program. When it gets to the print line, the
- program will issue an error message that reads:
-
- TOO MANY FILES OPEN
-
- Any subsequent disk access will cause an I/O error!! The
- only way out is to completely reboot the system!! I tried
- the same program under BASIC 1.10 and it worked perfectly.
-
- Gene Plantz (from Phil Niehoff, via Madison WISC BBS)
-
- 09-06-1983 12:46:58
- From: LARRY GOTTLIEB
- Subj: BASIC 2.00 OPEN PROBLEM
-
- The problem you experienced would appear to be related to
- the way in which DOS 2.0 handles file I/O. The BASIC 2.00
- manual notes on page 2-6a that the limit on files in BASIC
- may not be increased past 4 unless your CONFIG.SYS file has
- the line --
- FILES=n
- where n = 4 PLUS the desired maximum.
-
- I tried your example without the "FILES" statement and
- encountered the problem you described. After entering--
- FILES=9
- (and rebooting) the problem disappeared. This was done
- on a PC XT running DOS 2.0.
-
- Larry Gottlieb
- END OF TRANSFER - PRESS ENTER TO RETURN TO MENU
-
- Larry Gottlieb
- END OF TRANSFER - PRESS ENTER TO RETURN